﻿namespace UsingClassesAndObjects
{
    using System;

    class IsTheYearLeap
    {
        // 1.2.10.01. Write a program that reads a year from the console and checks whether it is a leap. Use DateTime.

        public static bool IsLeapYear(DateTime someDate)
        {
            return DateTime.IsLeapYear(someDate.Year);
        }

        static void Main()
        {
            int day = 1;
            int month = 2;
            int year = int.Parse(Console.ReadLine());
            DateTime userDate = new DateTime(year, month, day);

            Console.WriteLine();

            Console.WriteLine("{0} is leap: {1}", year, IsLeapYear(userDate));

            Console.WriteLine();

            Console.WriteLine("{0:dd.MM.yy}", userDate);
            Console.WriteLine("{0:d.MMM.yyyy}", userDate);
            Console.WriteLine("{0:dd.MMMM.yyyy}", userDate);
        }
    }
}